<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="com.pojo.Person" %><%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/7
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    Person person = new Person();

    ArrayList<HashMap<String, String>> al = new ArrayList<>();

    HashMap<String, String> hm = new HashMap<>();

    hm.put("name", "tom");
    hm.put("age", "18");

    al.add(hm);
    person.setPer(al);

    request.setAttribute("person", person);
%>

${person}<br>
${person.per[0].name}<br>
${person.per[0].age}

</body>
</html>
